package com.topvision.service.impl.zwan;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.topvision.mapper.zwan.CompanyProMapper;
import com.topvision.model.zwan.CompanyPro;
import com.topvision.service.zwan.CompanyProService;

@Service("companyProService")
public class CompanyProServiceImpl implements CompanyProService {
	@Autowired
	private CompanyProMapper companyProMapper;
	
	@Override
	public CompanyPro queryObject(Long id){
		return companyProMapper.queryObject(id);
	}
	
	@Override
	public List<CompanyPro> queryList(Map<String, Object> map){
		return companyProMapper.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return companyProMapper.queryTotal(map);
	}
	
	@Override
	public void save(CompanyPro companyPro){
		companyProMapper.save(companyPro);
	}
	
	@Override
	public void update(CompanyPro companyPro){
		companyProMapper.update(companyPro);
	}
	
	@Override
	public void delete(Long id){
		companyProMapper.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		companyProMapper.deleteBatch(ids);
	}

    @Override
    public CompanyPro queryObjectByMap(Map<String, Object> map){
        return companyProMapper.queryObjectByMap(map);
    }

    @Override
    public List<CompanyPro> queryByParam(Map<String, Object> map){
        return companyProMapper.queryByParam(map);
    }
}
